package com.heying.springcore.aop.xml;

import org.aopalliance.intercept.Joinpoint;
import org.aspectj.lang.ProceedingJoinPoint;

//观众
public class Audience {

    public void  takeSeat(){
        System.out.println("观众入席");
    }

    public void  turnOffPhone(){
        System.out.println("观众关机");
    }

    public void  applaud(){
        System.out.println("观众鼓掌");
    }

    public void  throwEggs(){
        System.out.println("观众扔鸡蛋");
    }

    public void arround(ProceedingJoinPoint joinpoint) throws Throwable {
        System.out.println("观众入场");
        joinpoint.proceed();
        System.out.println("观众退场");
    }

}
